package cn.baimo.mapper;

import cn.baimo.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    //通过用户名和密码查询用户
    @Select("select * from user where name=#{name} and pwd=#{pwd}")
    User selectUserByNameAndPwd(User user);
}
